package com.hanhai.zrb.model.resourcematch;

public enum ResourceMatchTypeEnum {
	
	INTENTION_PROJECT(101, "项目意向"), INTENTION_FUND(102, "资金意向"), PROJECT(103,
			"项目方"), FUND(104, "资金方");

	private Integer code;

	private String value;

	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private ResourceMatchTypeEnum(int code, String value) {
		this.code = code;
		this.value = value;
	}

	public static boolean exist(Integer code) {
		if (code == null) {
			return false;
		}
		if (code.equals(INTENTION_PROJECT.getCode())
				|| code.equals(INTENTION_FUND.getCode())
				|| code.equals(PROJECT.getCode())
				|| code.equals(FUND.getCode())) {
			return true;
		}
		return false;
	}
}